package app.server.project.core.tcp.model;

import cn.hutool.json.JSONUtil;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class TcpReqModel {
    private int cmd;
    private String data;

    public static TcpReqModel of(int cmd, String data) {
        return new TcpReqModel()
                .setData(data)
                .setCmd(cmd);
    }
}
